#include "slides_interface.hpp"
#include "interface_ids.hpp"

slides_interface::slides_interface()
{
}

void slides_interface::assign( wxPanel *parent )
{
	m_parent = parent;
	m_slides = new wxListBox(parent, ID_LISTSLIDES, wxPoint(10, 10), wxSize(200, 82));

	m_new  = new wxButton(parent, ID_BUTNEWSLIDE, wxT("New"), wxPoint(225, 73), wxSize(55,25));
	m_delete = new wxButton(parent, ID_BUTDELETESLIDE, wxT("Delete"), wxPoint(286, 73), wxSize(55,25));

	m_select_background = new wxButton(parent, ID_BUTSELECTSLIDEBG, wxT("browse BG"), wxPoint(435, 73), wxSize(90,25));
	m_background.assign(parent, ID_TXTSLIDEBG, wxT(""), wxPoint(276, 46),    wxSize(249, 20), wxTE_NO_VSCROLL, wxT("background"));

	m_name.assign(parent, ID_TXTSLIDENAME, wxT(""), wxPoint(261, 14),    wxSize(93, 20), wxTE_NO_VSCROLL, wxT("name"));

	m_gravX.assign(parent, ID_TXTSLIDEGRAVX, wxT(""), wxPoint(435, 14),    wxSize(33, 20), wxTE_NO_VSCROLL, wxT("gravity X"));
	m_gravY.assign(parent, ID_TXTSLIDEGRAVY, wxT(""), wxPoint(491, 14),    wxSize(33, 20), wxTE_NO_VSCROLL, wxT("Y"));
}